package com.ivncorp.evnproject.helpers;

import java.io.File;

import android.os.Build;
import android.os.Environment;

public class AlbumStorageDirFactory {

	private static final String CAMERA_DIR = "/dcim/";

	public File getAlbumStorageDir(String albumName) {
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {
			return new File(
					Environment
							.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES),
					albumName);
		} else {
			return new File(Environment.getExternalStorageDirectory()
					+ CAMERA_DIR + albumName

			);

		}
	}
}
